import request from '@/utils/request'

// 查询用户优惠劵对象列表
export function listUserMerchantsCoupon(query) {
  return request({
    url: '/marketers/UserMerchantsCoupon/list',
    method: 'get',
    params: query
  })
}

// 查询用户优惠劵对象详细
export function getUserMerchantsCoupon(id) {
  return request({
    url: '/marketers/UserMerchantsCoupon/' + id,
    method: 'get'
  })
}

// 新增用户优惠劵对象
export function addUserMerchantsCoupon(data) {
  return request({
    url: '/marketers/UserMerchantsCoupon',
    method: 'post',
    data: data
  })
}

// 修改用户优惠劵对象
export function updateUserMerchantsCoupon(data) {
  return request({
    url: '/marketers/UserMerchantsCoupon',
    method: 'put',
    data: data
  })
}

// 删除用户优惠劵对象
export function delUserMerchantsCoupon(id) {
  return request({
    url: '/marketers/UserMerchantsCoupon/' + id,
    method: 'delete'
  })
}
